package ExerciseFoure;

public class Shiwenxue extends Person{

	private int number;
	
	public Shiwenxue()
	{
		
	}
	
	public Shiwenxue(String name,String gender,int id,String address,int age,int number)
	{
		super(name,gender,id,address,age);
		this.number = number;
	}

	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}
	
	@Override
	public void eat() {
		System.out.println("学生应该好好吃饭");
	}
	
	@Override
	public void sleep() {
		System.out.println("学生应该每天睡够八个小时");
	}
}
